Structures (Cont.)
Pascal         C/C++
EXAMPLE: Suppose the types employee and student have
been previously declared:
var
   borrower: record
   case IsStudent of
     false: (EBorr: emploee);
     true: (SBorr: student)
   end;
NO DIRECT
EQUIVALENT IN C.
THIS CAN BE
HANDLED BY
CREATING A STRUCT
WHICH CONTAINS
THE TAG AND A
UNION AS ITS
FIELDS. (SEE NEXT
SLIDE)